﻿<UserControl x:Class="SL.Participant.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:extended="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    xmlns:liquid="clr-namespace:Liquid;assembly=Liquid"      
    xmlns:extensions="clr-namespace:SLExtensions.Controls;assembly=SLExtensions.Controls"
    Margin="0" Padding="0"
               MouseLeave="UserControl_MouseLeave"
             >
    <Grid x:Name="LayoutRoot" Background="White" Margin="0">
        <Grid>            
            <extensions:DockPanel LastChildFill="True">
                <Border Margin="0,0,0,0" Height="50"
                            extensions:DockPanel.Dock="Bottom" Padding="5"
                           HorizontalAlignment="Stretch">
                    <Border.Background>
                        <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                            <GradientStop Color="Black" Offset="0"/>
                            <GradientStop Color="Gray" Offset=".3"/>
                            <GradientStop Color="Black" Offset=".6"/>
                            <GradientStop Color="Black" Offset="1"/>
                        </LinearGradientBrush>
                    </Border.Background>
                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                        <StackPanel Orientation="Horizontal" Margin="20,0,50,0">
                            <TextBlock Grid.Row="0" HorizontalAlignment="Center" 
                                       FontFamily="Times New Roman" Foreground="White"
                                       Text="A" FontSize="20" VerticalAlignment="Center"/>
                            <Slider Minimum="1" SmallChange=".01" ValueChanged="sliderZoom_ValueChanged" 
                                    Maximum="2" Value="1" x:Name="sliderZoom" Width="60" Height="30"
                                    Margin="5" HorizontalAlignment="Center" Orientation="Horizontal"/>
                            <TextBlock Grid.Row="2" HorizontalAlignment="Center" 
                                       FontFamily="Times New Roman" Foreground="White"
                                       Text="A" FontSize="40" VerticalAlignment="Center"/>
                        </StackPanel>
                        <Button Margin="10,0,50,0" x:Name="btnBack" Click="btnBack_Click" IsEnabled="False"
                            Width="130" HorizontalAlignment="Center" Height="40">
                            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                                <Image Source="icons/back-32.png" VerticalAlignment="Center" Stretch="None"/>
                                <TextBlock Margin="10,0,0,0" HorizontalAlignment="Center" VerticalAlignment="Center" Text="Back"/>
                            </StackPanel>
                         </Button>
                        <Button Margin="10,0,10,0" x:Name="btnNext" Click="btnNext_Click" IsEnabled="False"
                            Width="130" HorizontalAlignment="Center" Height="40">
                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">                            
                            <TextBlock Margin="5,0,10,0" HorizontalAlignment="Center" VerticalAlignment="Center" Text="Next"/>
                            <Image Source="icons/next-32.png" Stretch="None" VerticalAlignment="Center"/>
                            </StackPanel>
                    </Button>
                    </StackPanel> 
                </Border>
                <ScrollViewer VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
                              HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" >
                    <ContentControl x:Name="ccSurvey" VerticalAlignment="Stretch">
                        <ContentControl.RenderTransform>
                            <ScaleTransform x:Name="GridZoom" ScaleX="1" ScaleY="1"/>
                        </ContentControl.RenderTransform>                     
                    </ContentControl>
                </ScrollViewer>
            </extensions:DockPanel>
        </Grid>
    </Grid>
</UserControl>
